package com.suddev.service;

import com.suddev.common.ServerResponse;
import com.suddev.pojo.Category;

import java.util.List;

/**
 * Created by zd on 2017/5/18 0018.
 */
public interface ICategoryService {

    ServerResponse addCategory(String categoryname, Integer parentId);

    ServerResponse updateCategoryName(Integer categoryId, String categoryName);

    ServerResponse<List<Category>> getChildenParallelCategory(Integer categoryId);

    ServerResponse<List<Integer>> selectCategoryAndChildrenById(Integer categoryId);
}
